export default {
  data() {
    return {
      loading: false,
      loadingSecond: false,
      loadingThird: false,
      firstSort: false,
      secondSort: false,
      thirdSort: false,
    };
  },
  methods: {
    setLoading(level, val) {
      switch (level) {
        case 1:
          this.loading = val;
          break;
        case 2:
          this.loadingSecond = val;
          break;
        case 3:
          this.loadingThird = val;
          break;
        default:
          break;
      }
    },
    setSort(level, val) {
      switch (level) {
        case 1:
          this.firstSort = val;
          break;
        case 2:
          this.secondSort = val;
          break;
        case 3:
          this.thirdSort = val;
          break;
        default:
          break;
      }
    },
  },
};
